import router from './router'
import getPageTitle from 'utils/getPageTitle'

// 路由拦截
router.beforeEach(async(to, from, next) => {
    document.title = getPageTitle(to.meta.title)  // set page title
    next()
})

//跳转完成后
router.afterEach(() => {  
    //to do something
})